<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>android 打包创建 jks 文件的整个过程</title>
    <style type="text/css" media="all">
      body {
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        font-size: 14px;
        line-height: 20px;
        color: #777;
        background-color: white;
      }
      .container {
        width: 700px;
        margin-right: auto;
        margin-left: auto;
      }

      .post {
        font-family: Georgia, "Times New Roman", Times, "SimSun", serif;
        position: relative;
        padding: 70px;
        bottom: 0;
        overflow-y: auto;
        font-size: 16px;
        font-weight: normal;
        line-height: 25px;
        color: #515151;
      }

      .post h1{
        font-size: 50px;
        font-weight: 500;
        line-height: 60px;
        margin-bottom: 40px;
        color: inherit;
      }

      .post p {
        margin: 0 0 35px 0;
      }

      .post img {
        border: 1px solid #D9D9D9;
      }

      .post a {
        color: #28A1C5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="post">
        <h1 class="title">android 打包创建 jks 文件的整个过程</h1>
        <div class="show-content">
          <p>看客朋友们大家好, 我是大表哥, 欢迎收看本期内容</p><p>本期内容说的是关于 android studio 打包时创建 jks 文件的整个过程, 废话不多说, 我们看正题:</p><p>先点击 Build , 选择 Generate Signed Bundle / APK , 如图:</p><p><br></p><div class="image-package">
<img class="uploaded-img" src="http://upload-images.jianshu.io/upload_images/7027863-c33794cd14c5be28.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"><br><div class="image-caption">

Build 菜单</div>
</div><p><br></p><p>选择 Generate Signed Bundle / APK 打开面板后, 选择 APK , 点击 next , 如图: </p><p><br></p><div class="image-package">
<img class="uploaded-img" src="http://upload-images.jianshu.io/upload_images/7027863-ee72253fe68727c4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"><br><div class="image-caption">

选择 APK</div>
</div><p>这里需要 jks 文件, 此时没有 jks 文件, 点击 Create new 按钮创建, 红色箭头指示的按钮, 如图: </p><div class="image-package">
<img class="uploaded-img" src="http://upload-images.jianshu.io/upload_images/7027863-1b6efa5871cacd3c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"><br><div class="image-caption">

点击 Create new 按钮创建 jks 文件截图</div>
</div><p>创建 jks 文件界面, 如图:</p><div class="image-package">
<img class="uploaded-img" src="http://upload-images.jianshu.io/upload_images/7027863-70e0f9df12b03aae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"><br><div class="image-caption">

创建 jks 文件界面截图</div>
</div><p>注意: jks 文件路径一般会选择</p><p>如图, 是我自己创建的 jks 文件截图: </p><div class="image-package">
<img class="uploaded-img" src="http://upload-images.jianshu.io/upload_images/7027863-c834ff8a8fce34fd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"><br><div class="image-caption">

自己创建的 jks 文件截图

</div>
</div><p>jks 文件创建成功后, 如图: </p><div class="image-package">
<img class="uploaded-img" src="http://upload-images.jianshu.io/upload_images/7027863-4d5c87d2a2a85bbd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"><br><div class="image-caption">

jks 文件创建成功后截图</div>
</div><p>点击 next , 进入到打包设置界面, 如图: </p><div class="image-package">
<img class="uploaded-img" src="http://upload-images.jianshu.io/upload_images/7027863-6b3861ad4246fafe.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"><br><div class="image-caption">

打包设置界

</div>
</div><p>记得勾上 v1和v2 , 点击 finish 等待打包完成;</p><p><br></p><p>本期内容到此结束, 感谢观看, 我是大表哥, 我们下期见;</p>
        </div>
      </div>
    </div>
  </body>
</html>
